<!--
 * @Description: 页头
                  url:跳转地址 默认返回上一页
                  content:页头名称
 * @Author: zhao
 * @Date: 2022-06-28 10:43:46
 * @LastEditors: zhao
 * @LastEditTime: 2022-06-28 15:59:04
-->
<!--  -->
<template>
    <div class="">
        <el-page-header @back="goBack" :content="content"> </el-page-header>
    </div>
</template>

<script>
export default {
    name: "",
    data() {
        return {}
    },
    props: {
        url: String,
        content: String,
    },
    components: {},

    computed: {},

    mounted() {},

    methods: {
        goBack() {
            if (!this.url) return this.$router.go("-1")
            this.$router.push(this.url)
        },
    },
}
</script>
<style lang='scss' scoped>
.el-page-header {
    ::v-deep .el-page-header__left {
        .el-page-header__title,
        .el-icon-back {
            font-size: 24px;
            font-weight: 550;
            color: rgba(22, 143, 223, 1);
        }
    }
}
</style>